package com.stu.day11.factory3.f3;

/**
 * @author zy
 * @date 2025/2/3 21:11
 */
public class Test {
    public static void main(String[] args) {
        CarFactory luxuryCarFactory = new LuxuryCarFactory();
        Car luxuryCar = luxuryCarFactory.createCar();
        luxuryCar.bodyAssemble();
        luxuryCar.seatAssemble();
        luxuryCar.wheelAssemble();

        System.out.println("----------");

        CarFactory economyCarFactory = new EconomyCarFactory();
        Car economyCar = economyCarFactory.createCar();
        economyCar.bodyAssemble();
        economyCar.seatAssemble();
        economyCar.wheelAssemble();
    }
}
